package com.ws.ssmzongjie3.service.impl;

import com.ws.ssmzongjie3.bean.Acl_Role;
import com.ws.ssmzongjie3.bean.Acl_User;
import com.ws.ssmzongjie3.bean.Acl_User_Role;
import com.ws.ssmzongjie3.mapper.Acl_RoleMapper;
import com.ws.ssmzongjie3.service.Acl_RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class Acl_RoleServiceImpl implements Acl_RoleService {
    @Autowired
    private Acl_RoleMapper acl_RoleMapper;
    @Override
    public int insertAcl_Role(Acl_Role acl_Role) {

        return acl_RoleMapper.insertAcl_Role(acl_Role);
    }

    @Override
    public int deleteAcl_Role(Acl_Role acl_Role) {
        return acl_RoleMapper.deleteAcl_Role(acl_Role);
    }

    @Override
    public Acl_Role getAcl_RoleById(Acl_Role acl_Role) {
        return acl_RoleMapper.getAcl_RoleById(acl_Role);
    }

    @Override
    public void updateAcl_Role(Acl_Role acl_Role) {
        acl_RoleMapper.updateAcl_Role(acl_Role);
    }

    @Override
    public List<Acl_Role> listAcl_Role(Acl_Role acl_Role) {
        return acl_RoleMapper.listAcl_Role(acl_Role);
    }

    @Override
    public List<Integer> listRole_id(Acl_User acl_user) {
        return acl_RoleMapper.listRole_id(acl_user);
    }

}
